public class Main {
	public static void main(String[] args ) {	
		int i,n,j,m;
		m=Integer.parseInt(args[0]);
		n=Integer.parseInt(args[1]);
		i=n*m;			
		j=n+m;
		System.out.println("和为："+j);
		System.out.println("积为："+i);
	}		 
}